<extend name="Base/common"/>

<block name="style">
<link href="__CSS__/stylesheet.css" rel="stylesheet">
<link href="__CSS__/identify.css" rel="stylesheet">
</block>

<block name="header">
<header>
	<include file="User/header" />
</header>
</block>

<block name="body">
<div class="container main">
	<div class="user-main">
		<div class="col-xs-3">
			<include file="Identify/left_menu" />
		</div>
		<div class="col-xs-9">
			<h5>我的鉴定</h5>
			<div class="content">
				<ul class="order-nav">
					<li <empty name="type">class="selected"</empty>><a href="{:U('Identify/index')}">所有订单</a></li>
					<li <eq name="type" value="pending">class="selected"</eq>><a href="{:U('Identify/index',array('type'=>'pending'))}">待付款（<em class="num">{$statistics.pending}</em></a>）</li>
					<li <eq name="type" value="shipping">class="selected"</eq>><a href="{:U('Identify/index',array('type'=>'shipping'))}">待发货（<em class="num">{$statistics.shipping}</em>）</a></li>
					<li <eq name="type" value="shipped">class="selected"</eq>><a href="{:U('Identify/index',array('type'=>'shipped'))}">已发货（<em class="num">{$statistics.shipped}</em>）</a></li>
					<li <eq name="type" value="receipt">class="selected"</eq>><a href="{:U('Identify/index',array('type'=>'receipt'))}">待收货（<em class="num">{$statistics.receipt}</em>）</a></li>
					<li <eq name="type" value="finish">class="selected"</eq>><a href="{:U('Identify/index',array('type'=>'finish'))}">已完成（<em class="num">{$statistics.finish}</em>）</a></li>
				</ul>
				<div class="order-search">
				
						<input type="text" name="order_keyword" id="order_keyword" value="{:I('order_keyword')}" placeholder="搜索标题或单号">
						<a href="javascript:;" class="btn search_btn">订单搜索</a>
						<script>
						$(function(){
							$('.search_btn').click(function(){								
							 	var order_keyword=$('#order_keyword').val();							
								location.href ="{:U('index')}"+'?order_keyword='+order_keyword;
							});
						});
						</script>					
				</div>
				<div class="table-list orders">
					<div class="hd">
						<ul class="table">
							<li>宝贝信息</li>
							<li>数量</li>
							<li>鉴定费</li>
							<li>交易状态</li>
							<li>交易操作</li>
						</ul>
					</div>
					<div class="bd">
						<ul class="order-list">
						<volist name="_list" id="volist">
							<li>
								<div class="head">
									<span class="order-no">订单号：{$volist.checkup_no}</span>
									<span class="order-time">{$volist.create_time|time_format='Y-m-d'}</span>
								</div>
								<ul class="p-list">
								
									<li>									
										<ul class="table">
											<li>
												<a href="{:U('detail',array('checkupid'=>$volist['id']))}" class="thumb"><img src="__ROOT__{$volist.image_path}"></a>
												<a href="{:U('detail',array('checkupid'=>$volist['id']))}">{$volist.title}</a>
											</li>
											<li>{$volist.quantity}</li>											
											<li><em class="yen">￥</em><em class="price">{$volist.identify_price}</em></li>
											<li><span class="order-status">{$volist.status_text}</span></li>
											<li class="order-action">
											<eq value='0' name="volist['status']">
												<a href="{:U('pay',array('checkupid'=>$volist['id'],'checkupno'=>$volist['checkup_no']))}" class="btn">付款</a>
												<a href="{:U('AjaxAction/delCheckup',array('checkupid'=>$volist['id']))}" class="btn cancel ajax-get">删除</a>
											</eq>
											<eq value='1' name="volist['status']" >
												<a href="{:U('identify/addShip',array('checkupid'=>$volist['id']))}" class="btn">填写物流信息</a>
											</eq>
											<eq value='1' name="volist['status']" type='gt'>
												<eq value='4' name="volist['status']" type='elt'>
												<a href="{:U('AjaxAction/checkupConfirm',array('checkupid'=>$volist['id']))}" class="btn ajax-get">收货</a>
													<a href="{$volist.id}" class="btn">物流信息</a>
												</eq>
											</eq>
											<eq value='5' name="volist['status']" type='egt'>
												<eq value='6' name="volist['status']" type='elt'>
													<a href="{:U('AjaxAction/delCheckup',array('checkupid'=>$volist['id']))}" class="btn cancel ajax-get">删除</a>
												</eq>
											</eq>											
											</li>
										</ul>
									</li>
								
								</ul>
							</li>
							</volist>
						</ul>
						<div class="page center">{$_page}</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
</block>

<block name="script">
<script type="text/javascript">
highlight_leftnav("{:U('Identify/index')}");
highlight_subnav("{:U('Identify/index')}");
</script>
</block>